<?php

$con=mysqli_connect("localhost","root","admin");
// Check connection
if (mysqli_connect_errno())
  {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
  }

// Create table
$sql= "CREATE TABLE HOPEWw.Department(
  dpt_ID INT NOT NULL AUTO_INCREMENT,
  dpt_Name VARCHAR(40) NOT NULL,
  PRIMARY KEY (dpt_ID )
   )";
// Execute query
if (mysqli_query($con,$sql))
  {
  echo "Table Department intcreated successfully";
  }
else
  {
  echo "Error creating table: " . mysqli_error($con);
  }
?>
